package com.zygh.lz.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Xlevelservice implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "电台呼号")
    @ExcelProperty("岗位名称")
    private String callsign;

    @ApiModelProperty(value = "卡口位置")
    @ExcelProperty("执勤地点")
    private String place;

    @ApiModelProperty(value = "属地分局")
    @ExcelProperty("属地分局")
    private Integer subofficeId;

    @ApiModelProperty(value = "交警人数")
    @ExcelProperty("执勤人数")
    private Integer number;

    @ApiModelProperty(value = "执勤单位")
    @ExcelProperty("执勤单位")
    private String sectionId;

    @ApiModelProperty(value = "执勤时间")
    @ExcelProperty("执勤时间")
    private String ondutytime;

    @ApiModelProperty(value = "GPS定位点")
    @ExcelProperty("GPS定位点")
    private String location;

    @ApiModelProperty(value = "勤务等级")
    @ExcelProperty("勤务等级")
    private String hierarchy;

    @ApiModelProperty(value = "出勤时间")
    @ExcelProperty("出勤时间")
    private String attendance;

    @ApiModelProperty(value = "勤务类型 0-等级勤务 1-重要警卫任务 2-应急管理任务 3-专项警卫任务 4-大型活动 5-其他警务")
    @ExcelProperty("勤务类型")
    private Integer state;

    @ApiModelProperty(value = "状态 1-正常 2-删除")
    @ExcelProperty("状态")
    private Integer zt;

    @ApiModelProperty(value = "任务id")
    private String rwid;

    @ApiModelProperty(value = "岗位id")
    private Integer positionId;

    @ExcelProperty(index = 5)
    @TableField(exist = false)
    private String position;

    @TableField(exist = false)
    private List<Xlevelservice> sectionList;

    @ApiModelProperty(value = "date", example = "0")
    @TableField(exist = false)
    private int signState;

}